home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / FILEFORM / STANDARD.H < prev    next >
Text File  |  1988-06-24  |  1KB  |  70 lines

  1. /*
  2. standards.h -- standard types and constants
  3. */
  4.  
  5.  
  6. /*constants*/
  7.  
  8. #define true -1
  9. #define false 0
  10.  
  11. #define bittrue 1
  12. #define bitfalse 0
  13.  
  14. #define emptystring "\p"
  15.  
  16. #define chreturn        ((char) 13)
  17. #define chenter            ((char) 3)
  18. #define chhome             ((char) 1)
  19. #define chend             ((char) 4)
  20. #define chhelp             ((char) 5)
  21. #define chpageup         ((char) 11)
  22. #define chpagedown         ((char) 12)
  23. #define chdelete         ((char) 127)
  24. #define chrightarrow     ((char) 29)
  25. #define chleftarrow     ((char) 28)
  26. #define chuparrow         ((char) 30)
  27. #define chdownarrow     ((char) 31)
  28. #define chbackspace        ((char) 8) 
  29. #define chtab             ((char) '\t')
  30.  
  31. #define infinity 32767
  32.    
  33. #define lenbigstring 255
  34.    
  35. #define scrollbarwidth 16
  36.       
  37. #define sizegrowicon 15 /*it's square, this is the length of each side*/
  38.  
  39. #define menubarheight 20
  40.  
  41. #define dragscreenmargin 4 /*for dragging windows, leave this many pixels on all sides*/
  42.  
  43. #define nil 0L
  44.  
  45.  
  46. /*types*/
  47.  
  48. #define boolean int
  49.  
  50. #define bigstring Str255
  51.  
  52. typedef bigstring *ptrstring, **hdlstring;
  53.  
  54. typedef char *ptrchar;
  55.  
  56. typedef int *ptrint;
  57.  
  58.  
  59. /*macros*/
  60.  
  61. #define sysbeep SysBeep (1) 
  62.  
  63. #define mod %
  64.  
  65. #define div /
  66.  
  67.  
  68.  
  69.  
  70.